<?php
namespace Common\Model;
use Common\Common\Model;
class deliveryModel extends Model {
    protected $tableName = 'delivery';
    protected $tablePrimary = 'id';
    protected $odjectClass='Common\Model\deliveryObject';
    /**
     * 用户登录标记
     * @param CustomerObject $user
     */
    public function login(CustomerObject $user){
        $_SESSION['id'] = $user->ID;
        $_SESSION['username'] = $user->username;
    }

    public function test(){
        $user2=$_SESSION['id'];
        return  $user2;
    }
}